home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 60750 / 60750.xpi / surfcanyon_sc.xpi / content / script-compiler-overlay.xul < prev    next >
Extensible Markup Language  |  2009-11-13  |  3KB  |  51 lines

  1. <?xml version="1.0"?>
  2. <overlay xmlns='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'>
  3.     <script type='application/x-javascript' src='chrome://surfcanyon/content/xmlhttprequester.js'></script>
  4.     <script type='application/x-javascript' src='chrome://surfcanyon/content/script-compiler.js'></script>
  5.     <script type='application/x-javascript' src='chrome://surfcanyon/content/sc_shareaholic.js'></script>
  6.     <script>
  7.         function surfcanyon_openprefs() {
  8.             window.open("http://my.surfcanyon.com");
  9.         }
  10.         function surfcanyon_openshare() {
  11.             window.open("http://www.surfcanyon.com/share");
  12.         }
  13.         function surfcanyon_openfeedback() {
  14.             window.open("http://www.surfcanyon.com/feedback");
  15.         }
  16.         function surfcanyon_opencontact() {
  17.             window.open("http://www.surfcanyon.com/contact");
  18.         }
  19.     </script>
  20.     <menupopup id="menu_ToolsPopup">
  21.         <menu id="surfcanyon-menuitem" label="Surf Canyon" class="menu-iconic" image="chrome://surfcanyon/content/favicon.ico" insertafter="devToolsSeparator">
  22.             <menupopup id="surfcanyon-menupopup">
  23.                 <menuitem class="menuitem-iconic" label="Options..." oncommand="surfcanyon_openprefs();" />
  24.                 <menuitem class="menuitem-iconic" label="Tell Your Friends..." oncommand="surfcanyon_openshare();" />
  25.                 <menuitem class="menuitem-iconic" label="Help and Feedback..." oncommand="surfcanyon_openfeedback();" />
  26.                 <menuitem class="menuitem-iconic" label="Contact Us..." oncommand="surfcanyon_opencontact();" />
  27.             </menupopup>
  28.         </menu>
  29.     </menupopup>
  30.  
  31.     <!-- Shareaholic -->
  32.     <hbox id="urlbar-icons">
  33.         <button id="surfcanyon-urlbar-main" tooltiptext="Surf Canyon Sharing..." style="-moz-user-focus: none;"
  34.             class="plain urlbar-icon" type="menu" insertbefore="feed-button" onclick="event.stopPropagation();">
  35.             <menupopup id="surfcanyon-urlbar-menu" onpopupshown="surfcanyon_SHR_library.makeshort();">
  36.                 <menuitem label="Surf Canyon Sharing..." tooltiptext="Surf Canyon Sharing..." class="surfcanyon-urlbar-title " />
  37.                 <menuitem label="Share with Email" tooltiptext='Send with Default Email Program' accesskey='M' class="menuitem-iconic menu-iconic" image="chrome://surfcanyon/content/mailto.png" oncommand='surfcanyon_SHR_library.dest_mailto();' />
  38.                 <menuitem label="Share with Facebook" tooltiptext="Share with Facebook" accesskey='F' class="menuitem-iconic menu-iconic" image="chrome://surfcanyon/content/facebook.png" oncommand='surfcanyon_SHR_library.destination(5,1,false);' />
  39.                 <menuitem label="Share with Gmail" tooltiptext="Share with Gmail" accesskey='G' class="menuitem-iconic menu-iconic" image="chrome://surfcanyon/content/gmail.png" oncommand='surfcanyon_SHR_library.destination(52,1,false);' />
  40.                 <menuitem label="Share with Twitter" tooltiptext='Share with Twitter' accesskey='T' class="menuitem-iconic menu-iconic" image="chrome://surfcanyon/content/twitter.png" oncommand='surfcanyon_SHR_library.destination(7,1,true);' />
  41.                 <menuseparator />
  42.                 <menuitem label="More Sharing Options..." tooltiptext='More Sharing Options...' accesskey='S' class="menuitem-iconic menu-iconic" image="chrome://surfcanyon/content/shareaholic_16x16.png" oncommand='surfcanyon_SHR_library.opennewtab("http://www.surfcanyon.com/shareaholic.jsp");' />
  43.                 <menuseparator />
  44.                 <menuitem label="Remove This..." tooltiptext='Remove This...' class="menuitem-iconic menu-iconic" oncommand='(new SurfCanyonMisc()).removeFromUrlBar();' />
  45.             </menupopup>
  46.         </button>
  47.     </hbox>    
  48.     
  49. </overlay>
  50.  
  51.